<?php
if(!$succ) {
    $error=$kitchen->getError('image');
    echo CHtml::script("alert('删除失败。$error'); history.go(-1);");
}
else {
    $imageUrl=UserImage::toUrl('kitchen',$kitchen->image);
    echo CHtml::script("
        parent.setKitchenImage('$imageUrl');
        parent.$.fn.colorbox.close();
    ");
} 
?>